package com.iut.cabinet.essai;

//import static org.junit.Assert.*;

import org.junit.Test;

import com.iut.cabinet.metier.CabinetMedicalException;
import com.iut.cabinet.metier.PatientRegle;

//import com.iut.cabinet.metier.PatientRegle;

public class VerifNirTest {

	@Test
	public void testVerifNir1() throws CabinetMedicalException {
		String nir = "260058700112367";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test
	public void testVerifNir2() throws CabinetMedicalException {
		String nir = "190102A08505056";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test
	public void testVerifNir3() throws CabinetMedicalException {
		String nir = "190102B08505083";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test
	public void testVerifNir4() throws CabinetMedicalException {
		String nir = "190102a08505056";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test
	public void testVerifNir5() throws CabinetMedicalException {
		String nir = "190102b08505083";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test(expected=CabinetMedicalException.class)
	public void testVerifNir6() throws CabinetMedicalException {
		String nir = "19064";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test
	public void testVerifNir7() throws CabinetMedicalException {
		String nir = "194108708529906";
		
		PatientRegle.verifNir(nir);

		
	}
	@Test(expected=CabinetMedicalException.class)
	public void testVerifNir8() throws CabinetMedicalException {
		String nir = "";
		
		PatientRegle.verifNir(nir);

		
	}




}
